package maze.views;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import maze.contexts.LookAndFeelContext;

public class ViewTest {
	
	private static void initLookAndFeel() {
		try {
			UIManager.setLookAndFeel(LookAndFeelContext.lookAndFeelClass);
		} catch (ClassNotFoundException | InstantiationException
				| IllegalAccessException | UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		}
	}
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		Session.put(SessionContext.MAZE, new MazeGenerator(MazeContext.width,
//				MazeContext.height, 0).generate());
//		Player.setSelfId(1);
//		Player.getSelf().setPosition(PointPool.getPool().get(0, 0));
//		Player.getEnemy().setPosition(
//				PointPool.getPool().get(MazeContext.width - 1,
//						MazeContext.height - 1));
		initLookAndFeel();
		IView view = new CountdownViewImp();
		JFrame frame = new JFrame();
		frame.setBounds(0, 0, 660, 520);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.add(view.getPanel());
		frame.setVisible(true);
	}
}
